package cn.cdut.yiwenqian.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.orm.hibernate4.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import cn.cdut.yiwenqian.dao.interfaces.IAnswerDAO;
import cn.cdut.yiwenqian.entity.CdutPostAnswers;
@Scope("singleton")
@Repository
public class AnswerDaoImpl extends HibernateDaoSupport implements IAnswerDAO {
	
	@Resource
	public void setMySessionFactory(SessionFactory sessionFactory){
		super.setSessionFactory(sessionFactory);
	}

	@Override
	public List<CdutPostAnswers> findAnswerByTitle(String title, int page) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<CdutPostAnswers> findAnswerByAuther(String auther, int page) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public CdutPostAnswers findAnsweresById(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void saveAnswer(CdutPostAnswers answer) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void updateAnswer(CdutPostAnswers answer) {
		// TODO Auto-generated method stub
		
	}

	

}
